package erlwitch.tree;

import java.util.ArrayList;
import java.util.List;

public class Term {
	protected int begin;
	protected int end;
	
	public Term(int begin, int end) {
		super();
		this.begin = begin;
		this.end = end;
	}
	public int getBegin() {
		return begin;
	}
	public void setBegin(int begin) {
		this.begin = begin;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	public static List<Term> addToList(Term t, List<Term> l) {
		l.add(t);
		return l;
	}
	public static List<Term> emptyList() {
		return new ArrayList<Term>();
	}
	public static List<Term> singleton(Term t) {
		List<Term> l = new ArrayList<Term>();
		l.add(t);
		return l;
	}
}
